{{/* The main documentation page content (three columns) */}}

{{ $here := .RelPermalink }}
{{ $hasToc := not .Params.no_toc }}
<div class="relative mx-auto px-4 sm:px-6 lg:px-10 mt-8">
  <div class="lg:grid lg:grid-cols-16 lg:gap-8">
    <div class="hidden lg:block lg:col-span-5 xl:col-span-4 pr-0 md:pr-6 lg:pr-12 md:pr-2">
      <nav aria-label="Sidebar" class="sticky top-8 h-screen overflow-auto pb-16" x-cloak>
        {{ partial "docs/sidebar.html" . }}
      </nav>
    </div>

    {{ if $hasToc }}
    <main aria-label="Main documentation content" class="lg:col-span-11 xl:col-span-9 md:px-0 pb-32 pr-0 lg:pr-24">
      {{ partial "content.html" . }}
    </main>

    <div class="hidden xl:block xl:col-span-3">
      <aside aria-label="Table of contents" class="sticky top-8 h-screen overflow-auto">
        {{ partial "toc.html" . }}
      </aside>
    </div>
    {{ else }}
    <main aria-label="Main documentation content" class="lg:col-span-11 xl:col-span-12 md:px-0 pb-32 pr-0 lg:pr-24">
      {{ partial "content.html" . }}
    </main>
    {{ end }}
  </div>

  {{ partial "docs/slideover.html" . }}
</div>